using Services;
using System.Collections.Generic;
using UnityEngine;

public class BoxTrigger_Player : BoxTrigger<Player>
{
    private Player player;

    protected override void Awake()
    {
        base.Awake();
        player = ServiceLocator.Get<ActionController>().player;
    }

    protected override List<Player> GetContact(RectInt rect)
    {
        List<Player> ret = new List<Player>();
        if (rect.Contains(player.GridTransform.Position))
            ret.Add(player);
        return ret;
    }
}
